const Auth = 'https://transport.ljkjkf.com/auth'
const Api = 'https://transport.ljkjkf.com'

export const API_LIST = (path = []) => ({
    posToken: `${Auth}/connect/token`,
    getOperator: `${Api}/yunshudaping/NewGetOperator`,

    getCiaoLiaoTypeInfo: `${Api}/yunshudaping/GetCiaoLiaoTypeInfo`,
    getCiaoLiaoTypeInfoV2: `${Api}/yunshudaping/GetCiaoLiaoTypeInfoV2`,

    getProjectInfo: `${Api}/yunshudaping/GetProjectInfo`,
    getDaPingInfo: `${Api}/yunshudaping/GetDaPingInfo`,
    getCiaoLiaoYuanGongInfo: `${Api}/yunshudaping/GetCiaoLiaoYuanGongInfo`,
    getCaiLiaoYunShuInfo: `${Api}/yunshudaping/GetCaiLiaoYunShuInfo`,
    getWebHuiZong: `${Api}/yunshudaping/GetWebHuiZong`,

    getCaiLiaoYunShuInfoEXCEL: `${Api}/yunshudaping/GetCaiLiaoYunShuInfoEXCEL`,
    getFeiYongExcel: `${Api}/yunshudaping/GetFeiYongExcel`,

    getYunShuImage: `${Api}/baida/GetYunShuImage`,

    // 角色
    posAddRole: `${Api}/user/AddRole`,
    posUpdateRole: `${Api}/user/UpdateRole`,
    posDeleteRole: `${Api}/user/DeleteRole?${path[0]}`,
    posAddRoleInfo: `${Api}/user/AddRoleInfo`,
    getRoleInfo: `${Api}/yunshudaping/GetRoleInfo`,
    getRoleList: `${Api}/user/GetRoleList`,
    getPowerInfoList: `${Api}/user/GetPowerInfoList`,
    getPowerInfoListByRoleUuid: `${Api}/user/GetPowerInfoListByRoleUuid`,

    // 用户
    getUserList: `${Api}/user/GetUserList`,
    posAddUsers: `${Api}/user/AddUsers`,
    posUpdateUsers: `${Api}/user/UpdateUsers`,
    posDeleteUser: `${Api}/user/DeleteUser?${path[0]}`,
    posVerifyUserNameAndPassword: `${Api}/user/VerifyUserNameAndPassword?${path[0]}`,
    getOrgListPing: `${Api}/user/GetOrgListPing`,


    // 三方登录
    getThreeLoginInfo: `${Api}/yunshudaping/GetThreeLoginInfo`,

    // 组织结构
    getOrgList: `${Api}/user/GetOrgList`,
    posAddOrg: `${Api}/user/AddOrg`,
    posUpdateOrg: `${Api}/user/UpdateOrg`,
    posDeleteOrg: `${Api}/user/DeleteOrg?${path[0]}`,

    // 获取项目数据     Transport
    getTransportProjects: `${Api}/transport/GetProjectList`,
    getFenceCoordinate: `${Api}/transport/GetFenceCoordinate`,

    posAddFences: `${Api}/transport/AddFences`,
    posRemoveFence: `${Api}/transport/RemoveFence`,

    posTransportProjects: `${Api}/transport/UpdateProjectLngLat`,
    putTransportProjects: `${Api}/transport/projects/${path[0]}`,
    getTransportFences: `${Api}/transport/fences`,
    posTransportFences: `${Api}/transport/fences`,
    delTransportFences: `${Api}/transport/fences/${path[0]}`,
    getTransportTransportRecords: `${Api}/transport/transportRecords/notInFence`,
    posTransportTransportRecords: `${Api}/transport/UpdateTransportHandle`,
    gettransportNotInFenceList: `${Api}/transport/GettransportNotInFenceList`,

    // 供应商管理 BuySuppliers
    getBuySuppliers: `${Api}/buySuppliers`,
    posBuySuppliers: `${Api}/buySuppliers`,
    putBuySuppliers: `${Api}/buySuppliers`,
    delBuySuppliers: `${Api}/buySuppliers`,
    getBuySupplierUserInfo: `${Api}/buySuppliers/GetBuySupplierUserInfo`,


    // 商品管理 BuyProductInfo
    getBuyProductInfo: `${Api}/buyProductInfo`,
    posBuyProductInfo: `${Api}/buyProductInfo`,
    putBuyProductInfo: `${Api}/buyProductInfo`,
    delBuyProductInfo: `${Api}/buyProductInfo`,
    posBuySuppAddImage: `${Api}/buyProductInfo/AddImage`,
    posBuySuppDeleteImage: `${Api}/buyProductInfo/DeleteImage`,
    posBuySuppUpdateImage: `${Api}/buyProductInfo/UpdateImage`,

    // 订单管理
    getBuyReturnInfoOrderInfo: `${Api}/buyReturnInfo/GetOrderInfo`,
    posBuyReturnInfoUpdateLogisticNumber: `${Api}/buyReturnInfo/UpdateLogisticNumber`,
    getBuyReturnInfo: `${Api}/buyReturnInfo`,
    posBuyReturnInfoUpdateReturnInfoStatus: `${Api}/buyReturnInfo/UpdateReturnInfoStatus`,
    getCaiLiaoYunShuStatistics: `${Api}/yunshudaping/GetCaiLiaoYunShuStatistics`,
    getKdGoldAPI: `${Api}/buyReturnInfo/GetKdGoldAPI`,

    posBuyReturnInfoUpdateStatus: `${Api}/buyReturnInfo/UpdateStatus`,
    posBuyReturnInfoUpdateDataStatus: `${Api}/buyReturnInfo/UpdateDataStatus`,

    // 微信绑定 
    posWeChatBinding: `${Api}/yunshudaping/BindOpenWeChatUnionIdAndUserId`,
    posWeChatUnding: `${Api}/yunshudaping/UnBindOpenWeChatUnionId`,

    // sse
    sseBind: `${Api}/yunshudaping/GetOpenUnionidOrTokenSSE`,

    getBuyReturnInfoGetBuyOrderOlap: `${Api}/buyReturnInfo/GetBuyOrderOlap`,


    posAddImage: `${Api}/baida/AddImage`,
    posDeleteImage: `${Api}/baida/DeleteImage?uuid=${path[0]}`,


})